import moment from 'moment';
const MONMENT_SPIT = {
  week: 'isoWeek',
  month: 'month',
  year: 'year',
};
export const getDisabledDate = (type = 'week') => {
  return moment()
    .add('days', -1)
    .endOf(MONMENT_SPIT[type] || 'month');
};
export const powerType = [
  {
    code: '全部',
    name: '全部',
  },
];
